<?php

require_once 'PHPMailer_5.2.0/class.phpmailer.php';

class Mail extends PHPMailer{
	
	var $From;  //email pengirim
	var $To; 	// email tujuan
	var $Name;  // nama tujuan
	var $FromName;   // name pengirim
	var $Subject;   
	var $Body;
	
	public function send_mail(){
	
		$this->AddAddress($this->To,$this->Name);
		$this->AddReplyTo($this->From,$this->FromName);  
	
		if($this->Send()==true){
			return true;
		}
		
		if($this->Send()==false){
			return false;
		}
	}


}